<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var name="赵浩楠";
			var gender="男";
			var age=22;
			var height="185cm";
			var weight="75kg";
			var hobby="没啥特别的爱好";
			
			//第一种调试 consolo.log
			
			console.log(name);
			console.log(gender);
			console.log(age);
			console.log(height);
			console.log(weight);
			console.log(hobby);
			
			//第二种调试document.write
			document.write(name+"<br>"+gender+"<br>"+age+"<br>"+height+"<br>"+weight+"<br>"+hobby);
//			document.write(gender);
//			document.write(age);
//			document.write(height);
//			document.write(weight);
//			document.write(hobby);
			document.write("<br><h1 style='color: red;'>我是h1的文字</h1>")
			
			//第三种调试alter
			alert("我的名字:"+name);
			alert("我的性别:"+gender);
			alert("我的年龄:"+age);
			alert("我的身高:"+height);
			alert("我的体重:"+weight);
			alert("我的爱好:"+hobby);
		</script>
	</body>
</html>
